<template>
	<view class="center">
<!-- 	<view class="tit"></view>
	<view class="title">
		<image src="@/static/images/arrow_left.png" mode="widthFix" @click="back"></image>
		<text>当前库存</text>
		<view class="ima" @click="screen">
			<image src="@/static/images/s36.png" mode="widthFix"></image>
			<image src="@/static/images/tb_icon.png" mode="widthFix"></image>
		</view>
	</view> -->
	<hea-ders title="当前库存">
		<image slot='left' src="@/static/images/arrow_left.png" mode="widthFix" @click="back"></image>
		<image slot='Lright' src="@/static/images/s36.png" mode="widthFix"></image>
		<image slot='Rright' src="@/static/images/tb_icon.png" mode="widthFix"></image>
	</hea-ders>
	<view class="lei">
		<view class="kuan">
			<image src="@/static/images/s19.png" mode="widthFix" @click="scan"></image>
			<!-- <image src="@/static/images/search.png" mode="widthFix"></image> -->
			<input type="text" value="" placeholder="编码/名称" />
		</view>
		<view class="xia">
			<text>账面数量</text>
			<text>0</text>
			<view class="fls">
				<view class="number">
					<text class="number_su">账面数量</text>
					<text >0</text>
				</view>
				<view class="xians"></view>
				<view class="number">
					<text>账面数量</text>
					<text>0</text>
				</view>
			</view>
		</view>
	</view>
	<view class="select">
		<xfl-select
		 class="ri"
		:list="list" 
		:clearable="false" 
		:showItemNum="5" 
		:listShow="false" 
		:isCanInput="false" 
		:style_Container="'height: 100%; font-size: 16px;'"
		 :placeholder="'placeholder'" 
		 :initValue="'苹果'">
		</xfl-select>
	</view>
			<view class="kbi">
				<view class="centers">
					<image src="@/static/images/s20.png" mode="widthFix"></image>
					<text>还没有内容哦</text>
				</view>
				
			</view>
	</view>
</template>

<script>
	import heaDers from'../../header/header.vue'
	import xflSelect from '@/components/xfl-select/xfl-select.vue';
	export default {
		components:{
			xflSelect,
			heaDers
		},
		data() {
			return {
				list: [ //要展示的数据
					'苹果',
					{
						value: '香蕉',
						disabled: false
					},
					'葡萄',
					'芒果',
					'大白菜',
				],
			}
		},
		methods: {
			back(){
				uni.navigateBack({
					delta:1
				})
			},
			screen(){
				uni.navigateTo({
					url:'screen/screen'
				})
			},
			scan(){
				uni.scanCode({
					success:(res)=> {
					console.log('条码类型：' + res.scanType);
					console.log('条码内容：' + res.result);
					 }
				})
			},
			
		}
	}
</script>

<style lang="scss" scoped>
.center {
	width: 100%;
	height: 100vh;
	box-sizing: border-box;
	background: #fff;
	
	.tit {
		width: 100%;
		height: 50rpx;
		box-sizing: border-box;
	}
	
	.title {
		width: 100%;
		height: 88rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		background-color: rgba(36, 153, 246, 1);
		display: flex;
		justify-content: space-between;
		align-items: center;
	
		image {
	
			width: 22rpx;
		}
	
		text {
			font-size: 36rpx;
			color: #fff;
			font-weight: 400;
			font-family: PingFang SC;
		}
	
		.ima {
			image {
				width: 40rpx;
				margin-left: 5rpx;
			}
		}
	}
	.lei{
		width: 100%;
		background-color: #fff;
		box-sizing: border-box;
		.kuan {
			width: 100%;
			padding: 30rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			image{
				width: 40rpx;
				margin-right: 20rpx;
			}
			input{
				width: 100%;
				height: 64rpx;
				background-color: #e0e0e0 !important;
				box-sizing: border-box;
				border-radius: 32rpx;
				padding-left: 70rpx;
				font-size:24rpx;
				font-family:PingFang SC;
				font-weight:400;
				line-height:33rpx;
				color:rgba(189,189,189,1);
				opacity:1;
				background: url(../../../static/images/tb_search.png)no-repeat ;
				background-size:5%; 
				background-position:2% 50%;
			}
		}
	}
	.xia {
		background: rgba(35, 153, 246, 1);
		width: 100%;
		padding: 30rpx 0;
		box-sizing: border-box;
		text{
			display: inline-block;
			width: 100%;
			text-align: center;
			font-size:24rpx;
			font-family:PingFang SC;
			font-weight:400;
			line-height:33rpx;
			color:rgba(197,229,255,1);
			opacity:1;
			box-sizing: border-box;
		}
		.fls{
			margin-top: 20rpx;
			display: flex;
			.number {
			width: 50%;
			.number_su{
				font-size:24rpx;
				font-family:PingFang SC;
				font-weight:400;
				line-height:33rpx;
				color:rgba(197,229,255,1);
				opacity:1;
				}
			}
			.xians {
				background-color: #fff;
				width: 0.5%;
			}
		}
	}
	.select {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	box-sizing: border-box;
	padding: 10rpx 20rpx;
		.ri{
			width: 40%;
		}
	}
	.kbi {
		width: 100%;
		height: 52%;
		overflow-y: scroll;
		background-color: rgba(245, 245, 245, 1);
		.centers {
			margin-top: 20%;
			display: flex;
			flex-direction: column;
			align-items: center;
			image {
				width: 200rpx;
				margin: 0 auto;
			}
			text{
				font-size:32rpx;
				font-family:PingFang SC;
				font-weight:500;
				line-height:45rpx;
				color:rgba(183,183,183,1);
				opacity:1;
			}
		}
	
	}
}
</style>
